package com.sqj.singletonPattern.seriable;

import java.io.Serializable;

public class SeriableSingleton implements Serializable {
    private SeriableSingleton(){}

    private static final SeriableSingleton INSTANCE=new SeriableSingleton();

    public static SeriableSingleton getInstance(){
        return INSTANCE;
    }

    public Object readResolve(){
        return INSTANCE;
    }
}
